home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / Utility Library / Source / Q3ULPriv.h < prev   
Encoding:
C/C++ Source or Header  |  1997-08-14  |  1.6 KB  |  63 lines  |  [TEXT/CWIE]

  1. /*
  2.  *
  3.  * Private interface for Utility library for QuickDraw 3D.
  4.  *
  5.  * Nick Thompson, nickt@apple.com
  6.  * Send bug reports and feedback to devsupport@apple.com.
  7.  *
  8.  * ©1997 Apple Computer Inc, All Rights Reserved 
  9.  *
  10.  * Modification History:
  11.  *
  12.  */
  13.  
  14. #ifndef _Q3UL_PRIV_
  15. #define _Q3UL_PRIV_
  16.  
  17. #include "Q3UL.h"
  18. #include <Windows.h>
  19.  
  20. /* each window has a platform dependant window 
  21.  * record and a set of procs to operate on the window
  22.  */
  23.  
  24. typedef struct TQ3UL_WindowDescriptor {
  25.  
  26.     /*
  27.      * the ref fields can be used for what ever you like, I'd
  28.      * suggest a window type in the refID fiels which can
  29.      * be used to determine the format of the data in the
  30.      * recon field.  Of course you can stash a pointer in the 
  31.      * refcon field on 32 bit processor machines.
  32.      */
  33.      
  34.     unsigned long                refType ;
  35.     unsigned long                refCon ;
  36.  
  37.     WindowPtr                    window ;
  38.     
  39.     /* handler procs for the window */
  40.     TQ3UL_CloseWindowHandler     theCloseHandler ;
  41.     TQ3UL_KeyHandler             theKeyHandler ;
  42.     TQ3UL_MouseDownHandler         theMouseDownHandler ;
  43.     TQ3UL_MouseUpHandler         theMouseUpHandler ;
  44.     TQ3UL_MouseDragHandler         theMouseDragHandler ;
  45.     TQ3UL_RedrawHandler         theRedrawHandler ;
  46.     TQ3UL_IdleHandler             theIdleHandler ;
  47.     
  48.     TQ3ViewObject                theView ;
  49.  
  50. } TQ3UL_WindowDescriptor ;
  51.  
  52.  
  53. /* currently we have our window list stored in an array, this
  54.  * could be extended to use a variable length array (we add items
  55.  * to the array as needed, or as a linked list.  For now we just
  56.  * want to keep it as simple as possible.
  57.  */
  58. #define                                MAXNUMWINDOWS        12
  59.  
  60. extern TQ3UL_WindowDescriptor        gWindowArray[] ;
  61. extern Boolean                        gQuitFlag ;
  62.  
  63. #endif